class Info{
  constructor(ctx){
    this.ctx = ctx;
  }
  //把分数绘制在屏幕左上角
  showScore(score) {
    this.ctx.textAlign = 'left'
    this.ctx.font = '22px 微软雅黑'
    this.ctx.fillStyle = '#64615d'
    let scoreInfo = '当前分数：' + score
    this.ctx.fillText(scoreInfo, 10, 25)
  }
}
export default Info;